﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZhimeiSoft.Framework.Common.TableInfo
{
    /// <summary>
    /// 卡项目表
    /// </summary>
    public class DBCardItemInfo : DBBaseInfo
    {
        /// <summary>
        /// 表名称
        /// </summary>
        /// <returns></returns>
        public override string GetTableName()
        {
            return "CARDITEMINFO";
        }
        /// <summary>
        /// 卡项目ID
        /// </summary>
        public int CARDITEMID { get; set; }
        /// <summary>
        ///  卡项目编码
        /// </summary>
        public string CITEMCODE { get; set; }
        /// <summary>
        /// 卡项目名称
        /// </summary>
        public string CITEMNAME { get; set; }
        /// <summary>
        /// C0P 消费卡 C0S 储蓄卡 如果是C0P那么计价方式启用
        /// </summary>
        public string CARDTYPE { get; set; }
        /// <summary>
        /// 表示卡项目的有效期间 C0N 无期、 C0T 启用卡项目有效期
        /// </summary>
        public string CSTATE { get; set; }
        /// <summary>
        /// 项目有效开始时间 默认 2000-1-1 
        /// </summary>
        public DateTime CSTARTTIME { get; set; }
        /// <summary>
        /// 项目有效结束时间 默认 3000-1-1
        /// </summary>
        public DateTime CENDTIME { get; set; }
        /// <summary>
        /// 计价方式 CNT 记次存放在CSumCount字段中 CMT记价格CSumMoney记录在CSumMoney CNM 记次记价格分别记录前两个字段
        /// </summary>
        public string CPRICINGMODE { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal CSUMMONEY { get; set; }
        /// <summary>
        /// 总次数
        /// </summary>
        public int CSUMCOUNT { get; set; }
        /// <summary>
        /// 卡描述
        /// </summary>
        public string CDESCRIPTON { get; set; }
        /// <summary>
        /// 适应人群
        /// </summary>
        public string CRIGHTCUTOM { get; set; }
        /// <summary>
        /// 所需时间;存放分钟
        /// </summary>
        public int COPERATIONTIME { get; set; }
        /// <summary>
        /// 操作步骤
        /// </summary>
        public string COPERATIONSTEP { get; set; }
        /// <summary>
        /// 快速定位码
        /// </summary>
        public string CINDEXCODE { get; set; }
        /// <summary>
        /// 每次护理如果记次CNT那么每次扣记次，如果记价CMT那么每次扣多少款，如果记次价那么按照记次算
        /// </summary>
        public int CPAY { get; set; }
        /// <summary>
        /// 赠送积分
        /// </summary>
        public int CINTEGRAL { get; set; }
        /// <summary>
        ///字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 卡项目ID
            /// </summary>
            public const string CARDITEMID = "CARDITEMID";
            /// <summary>
            ///  卡项目编码
            /// </summary>
            public const string CITEMCODE = "CITEMCODE";
            /// <summary>
            /// 卡项目名称
            /// </summary>
            public const string CITEMNAME = "CITEMNAME";
            /// <summary>
            /// C0P 消费卡 C0S 储蓄卡 如果是C0P那么计价方式启用
            /// </summary>
            public const string CARDTYPE = "CARDTYPE";
            /// <summary>
            /// 表示卡项目的有效期间 C0N 无期、 C0T 启用卡项目有效期
            /// </summary>
            public const string CSTATE = "CSTATE";
            /// <summary>
            /// 项目有效开始时间 默认 2000-1-1 
            /// </summary>
            public const string CSTARTTIME = "CSTARTTIME";
            /// <summary>
            /// 项目有效结束时间 默认 3000-1-1
            /// </summary>
            public const string CENDTIME = "CENDTIME";
            /// <summary>
            /// 计价方式 CNT 记次存放在CSumCount字段中 CMT记价格CSumMoney记录在CSumMoney CNM 记次记价格分别记录前两个字段
            /// </summary>
            public const string CPRICINGMODE = "CPRICINGMODE";
            /// <summary>
            /// 总价
            /// </summary>
            public const string CSUMMONEY = "CSUMMONEY";
            /// <summary>
            /// 总次数
            /// </summary>
            public const string CSUMCOUNT = "CSUMCOUNT";
            /// <summary>
            /// 卡描述
            /// </summary>
            public const string CDESCRIPTON = "CDESCRIPTON";
            /// <summary>
            /// 适应人群
            /// </summary>
            public const string CRIGHTCUTOM = "CRIGHTCUTOM";
            /// <summary>
            /// 所需时间;存放分钟
            /// </summary>
            public const string COPERATIONTIME = "COPERATIONTIME";
            /// <summary>
            /// 操作步骤
            /// </summary>
            public const string COPERATIONSTEP = "COPERATIONSTEP";
            /// <summary>
            /// 快速定位码
            /// </summary>
            public const string CINDEXCODE = "CINDEXCODE";
            /// <summary>
            /// 每次护理如果记次CNT那么每次扣记次，如果记价CMT那么每次扣多少款，如果记次价那么按照记次算
            /// </summary>
            public const string CPAY = "CPAY";
            /// <summary>
            /// 赠送积分
            /// </summary>
            public const string CINTEGRAL = "CINTEGRAL";
        }
        /// <summary>
        /// C0P 消费卡 C0S 储蓄卡 如果是C0P那么计价方式启用
        /// </summary>
        public static class ENUM_CARDTYPE
        {
            /// <summary>
            ///  C0P 消费卡
            /// </summary>
            public const string COP = "COP";
            /// <summary>
            /// C0S 储蓄卡
            /// </summary>
            public const string COS = "COS";
        }
        /// <summary>
        /// 表示卡项目的有效期间 C0N 无期、 C0T 启用卡项目有效期
        /// </summary>
        public static class ENUM_CSTATE
        {
            /// <summary>
            /// C0N 无期
            /// </summary>
            public const string CON = "CON";
            /// <summary>
            /// C0T 启用卡项目有效期
            /// </summary>
            public const string COT = "COT";
        }
    }
}
